package com.product.statemachine.order.event.enums;

/**
 * @author caoxingming
 */

public enum OrderStateEnums {
    ORDER_NONEXISTENT("ORDER_NONEXISTENT",0," 订单未创建"),
    ORDER_CREATED("ORDER_CREATED",1,"订单已创建"),
    ORDER_PAYED("ORDER_PAYED",2,"订单已支付"),
    ORDER_TO_DELIVERY("ORDER_TO_DELIVERY",3,"订单待发货"),
    ORDER_TO_RECEIVE("ORDER_TO_RECEIVE",4,"订单待收货"),
    ORDER_COMPLETED("ORDER_COMPLETED",5,"订单完成"),
    ORDER_REVERSING("ORDER_REVERSING",7,"订单售后中"),
    ORDER_REVERSED("ORDER_REVERSED",8," 订单已售后"),
    ORDER_CLOSED("ORDER_CLOSED",8,"订单已关闭"),
    ;

    OrderStateEnums(String stateName, Integer stateCode, String stateDesc) {
        this.stateName = stateName;
        this.stateCode = stateCode;
        this.stateDesc = stateDesc;
    }

    private String stateName;
    private Integer stateCode;
    private String stateDesc;


    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public String getStateDesc() {
        return stateDesc;
    }

    public void setStateDesc(String stateDesc) {
        this.stateDesc = stateDesc;
    }

    public Integer getStateCode() {
        return stateCode;
    }

    public void setStateCode(Integer stateCode) {
        this.stateCode = stateCode;
    }

    @Override
    public String toString() {
        return "OrderStateEnums{" +
                "stateName='" + stateName + '\'' +
                ", stateCode=" + stateCode +
                ", stateDesc='" + stateDesc + '\'' +
                '}';
    }
}
